package org.hilo.boot.core.value;

import java.lang.reflect.Field;

/**
 * AutoValue Parser
 * @see AutoValue
 * 
 * @author zollty
 * @since 2018-3-20
 */
public interface AutoValueParser {

    /**
     * check if the class is supported.
     */
    public boolean support(Class<?> clazz, Field field);
    
    /**
     * parse the defaultValue
     * 
     * @param defaultValue (string type) if it's "" means no default value.
     * @return the default value
     */
    public Object parse(String defaultValue, Field field);
}
  
